<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
      <com-a></com-a>
      <com-b></com-b>
  </div>
  <script src="./vue.js"></script>
  <script>
      const ComA = {
          template:'<h1>我是局部组件ComA</h1>'
      }
      const ComB = {
          template:'<h1>我是局部组件ComB</h1>'
      }

    var vm = new Vue({
      el:'#app',
      data:{
      },
      components : {
          ComA,
          ComB
      }
     });
  </script>
</body>
</html>
